const Koa=require('koa')
const router=require('./router/user')
const app=new Koa()

app.use((ctx,next)=>{
     console.log(ctx.request.url)
     console.log(ctx.request.query)
     //parapms获取不到
     next()
})
app.use(router.routes())

app.listen(8000,()=>{
    console.log("发送服务器成功")
})